package com.example.demo.persistence;

import com.example.demo.domain.Account;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.SQLException;


@Repository

public interface AccountDao {
    Account getAccountByUsername(@Param("username")String username);

    Account getAccountByUsernameAndPassword(@Param("account")Account account);

    void insertAccount(@Param("account") Account account) throws SQLException;

    void insertProfile(@Param("account") Account account) throws SQLException;

    void insertSignon(@Param("account") Account account) throws SQLException;

    void updateAccount(@Param("account") Account account) throws SQLException;

    void updateProfile(@Param("account") Account account) throws SQLException;

    void updateSignon(@Param("account") Account account) throws SQLException;
}
